package Visao;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.JRadioButton;
import javax.swing.JButton;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import javax.swing.JComboBox;

public class TelaCadastroCd extends JFrame {

	private JPanel contentPane;
	private JTextField txtTitulo;
	private JLabel lblTitulo;
	private JTextField textField;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					TelaCadastroCd frame = new TelaCadastroCd();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public TelaCadastroCd() {
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 450, 300);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		
		lblTitulo = new JLabel("Titulo:");
		lblTitulo.setBounds(10, 11, 68, 14);
		contentPane.add(lblTitulo);
		
		txtTitulo = new JTextField();
		txtTitulo.setBounds(10, 29, 258, 20);
		contentPane.add(txtTitulo);
		txtTitulo.setColumns(10);
		
		JLabel lblAno = new JLabel("Ano:");
		lblAno.setBounds(10, 57, 68, 14);
		contentPane.add(lblAno);
		
		textField = new JTextField();
		textField.setBounds(10, 73, 258, 20);
		contentPane.add(textField);
		textField.setColumns(10);
		
		JLabel lblEhDuplo = new JLabel("Eh duplo?");
		lblEhDuplo.setBounds(10, 104, 68, 14);
		contentPane.add(lblEhDuplo);
		
		JRadioButton rdbtnVerdadeiroD = new JRadioButton("Sim");
		rdbtnVerdadeiroD.setBounds(10, 125, 53, 23);
		contentPane.add(rdbtnVerdadeiroD);
		
		JRadioButton rdbtnFalsoD = new JRadioButton("Nao");
		rdbtnFalsoD.setSelected(true);
		rdbtnFalsoD.setBounds(80, 125, 53, 23);
		contentPane.add(rdbtnFalsoD);
		
		JLabel lblEhColetanea = new JLabel("Eh coletanea?");
		lblEhColetanea.setBounds(10, 154, 68, 14);
		contentPane.add(lblEhColetanea);
		
		JRadioButton rdbtnVerdadeiroC = new JRadioButton("Sim");
		rdbtnVerdadeiroC.setBounds(10, 175, 53, 23);
		contentPane.add(rdbtnVerdadeiroC);
		
		JRadioButton rdbtnFalsoC = new JRadioButton("Nao");
		rdbtnFalsoC.setSelected(true);
		rdbtnFalsoC.setBounds(80, 175, 53, 23);
		contentPane.add(rdbtnFalsoC);
		
		JButton btnAdicionar = new JButton("Adicionar no Cd");
		btnAdicionar.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
			}
		});
		btnAdicionar.setBounds(10, 238, 130, 24);
		contentPane.add(btnAdicionar);
		
		JComboBox comboBox = new JComboBox();
		comboBox.setBounds(10, 205, 130, 22);
		contentPane.add(comboBox);
		
		JLabel lblMusicas = new JLabel("Musicas no Cd ->");
		lblMusicas.setBounds(150, 209, 89, 14);
		contentPane.add(lblMusicas);
		
		JComboBox comboBox_1 = new JComboBox();
		comboBox_1.setBounds(250, 205, 150, 22);
		contentPane.add(comboBox_1);
		
		JButton btnRemover = new JButton("Remover do Cd");
		btnRemover.setBounds(160, 238, 130, 24);
		contentPane.add(btnRemover);
	}
}
